SET LIGHT MAPPING ON

This command will set the light map for the specified object.

  Syntax
SET LIGHT MAPPING ON Object Number, Image Number, Reverse Stage Mode
SET LIGHT MAPPING ON Object Number, Image Number
  Parameters
Object Number
Integer
The object number
Image Number
Integer
The light map textures number
Reverse Stage Mode
Integer
If the reverse stage usage flag is set to one, then the texture should occupy stage one and the diffuse and lightmapping should occupy stage zero

  Returns

This command does not return a value.

  Description

Light map textures are combined with the main texture to create a multitextured object. An optional parameter is provided where you wish to combine the object diffuse and texture in stage zero together, and then multiply the result with the texture in stage one.

  Example Code
circle 16,16,15
get image 1,0,0,32,32
cls rgb(255,255,255)
get image 2,0,0,32,32
make object plane 1,10,10
texture object 1,0,1
texture object 1,1,2
set light mapping on 1,2,1
set object diffuse 1,rgb(0,255,0)
wait key
  See also

BASIC3D Commands Menu
Index